// HandlerRegistrar.h







#include "HandlerRegistrar.h"
#include "../handler/ArchiveHandler.h"
#include "../handler/MetadataMinimalHandler.h"
#include "../handler/MetadataSlimHandler.h"
#include "../handler/MetadataUrlsHandler.h"

std::map<std::string, CivetHandler *> HandlerRegistrar::registerHandlers() {
    std::map<std::string, CivetHandler *> handlers;

    static OkHandler ok_handler;
    handlers["/api/ok"] = &ok_handler;

    static AnotherHandler another_handler;
    handlers["/api/another"] = &another_handler;

    static ArchiveHandler archive_handler;
    handlers["/api/dicom/archive"] = &archive_handler;

    static MetadataMinimalHandler metadata_minimal_handler;
    handlers["/api/dicom/metadata/minimal"] = &metadata_minimal_handler;

    static MetadataSlimHandler metadata_slim_handler;
    handlers["/api/dicom/metadata/slim"] = &metadata_slim_handler;

    static MetadataUrlsHandler metadata_urls_handler;
    handlers["/api/dicom/downloadUrls"] = &metadata_urls_handler;

    return handlers;
}

